# 作者: 肖老师
# 2024年11月14日03时43分39秒
# xxxrlmk@163.com
class Person:
    """人类"""

    def __init__(self, name, weight):
        self.name = name
        self.weight = weight

    def __str__(self):
        return f'{self.name} 的体重是 {self.weight}'

    def run(self):
        """跑步"""

        print("%s 爱跑步，跑步锻炼身体" % self.name)
        self.weight -= 0.5

    def eat(self):
        """吃东西"""

        print("%s 是吃货，吃完这顿再减肥" % self.name)
        self.weight += 1


xiao_ming = Person('小明', 85)
print(xiao_ming)
xiao_ming.run()
print(xiao_ming)
